import { connect, mapProps } from '@formily/vue'
import FileUpload from '@/components/FileUpload/index.vue'

export default connect(
  FileUpload,
  mapProps(
    { value: 'modelValue' },
    props => ({
      ...props,
      'onUpdate:modelValue': props.onChange,
    }),
  ),
)
